package com.aruba.service.impl;

import com.aruba.mapper.StockMapper;
import com.aruba.service.StockService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StockServiceImpl implements StockService {
    @Autowired
    private StockMapper stockMapper;

    @Override
    public void reduceStock(Integer id) {
        stockMapper.reduceStock(id);
    }
}
